package com.scagoods.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestClient;

/**
 * @author yan
 * @date 2025/8/21
 */
@Configuration
public class MyConfig {

    /**
     * 负载均衡
     * @return
     */
    @LoadBalanced
    @Bean
    public RestClient.Builder restClient() {
        return RestClient.builder();
    }


}
